package com.cy.pj.health.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HealthController {

    @RequestMapping("/doHealth")
    public ModelAndView doHealth(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("default");
        mv.addObject("username","chenzishu");
        mv.addObject("state","亚健康");
        return mv;
    }
}
